package com.yanyan.sannuomin.service.impl;



import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yanyan.sannuomin.dao.AccountMapper;


import com.yanyan.sannuomin.domain.SccRole;


import com.yanyan.sannuomin.domain.SccUserLogin;
import com.yanyan.sannuomin.service.AccountService;
import com.yanyan.sannuomin.vo.AccountVo;
import com.yanyan.sannuomin.vo.AccountVo1;
import com.yanyan.sannuomin.vo.Repassword;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, SccRole> implements AccountService {
    @Resource
    private AccountMapper accountMapper;

    @Override
    public List<AccountVo> findAccount(AccountVo1 accountVo1) {

        return accountMapper.findAccount(accountVo1);
    }

    @Override
    public int delete(Integer id) {
        return accountMapper.delete(id);
    }

    @Override
    public int update(AccountVo accountVo) {
        return accountMapper.update(accountVo);
    }

    @Override
    public int add(SccUserLogin sccUserLogin) {
        return accountMapper.add(sccUserLogin);
    }

    @Override
    public int add1(Integer storeId, Integer userId) {
        return accountMapper.add1(storeId,userId);
    }

    @Override
    public int add2(Integer roleId, Integer userId) {
        return accountMapper.add2(roleId,userId);
    }

    @Override
    public int remover(Repassword repassword) {
        return accountMapper.remover(repassword);
    }


}

